min problem algorithm

visit shbcf.ru